/*
 * Copyright 2025 arisgo@163.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.arisgo.cloud.auth.sys.entity;

import com.arisgo.cloud.web.model.NumberIdWithTime;
import com.mybatisflex.annotation.Table;
import lombok.Data;

/**
 * 菜单
 *
 * @author Arisgo
 * @since 2024-06-14
 */
@Data
@Table("auth_menu")
public class Menu extends NumberIdWithTime {
    /**
     * 父级ID
     */
    private Long parentId;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 菜单名称
     */
    private String name;
    /**
     * 菜单编码
     */
    private String code;
    /**
     * 菜单别名
     * TODO: 删除
     */
    private String alias;
    /**
     * 菜单路径
     */
    private String path;
    /**
     * 菜单资源
     */
    private String icon;
    /**
     * 菜单类型 0/菜单 1/Tab 2/按钮
     */
    private Integer type;
    /**
     * TODO: 字段意义不明
     * 按钮类型 ?
     */
    private Integer action;
    /**
     * TODO: 字段意义不明
     * 是否打开新页面 0/不开 1/开
     */
    private Integer isOpen;
    /**
     * 备注
     */
    private String describe;

    public static final String CODE = "code";
    public static final String NAME = "name";
    public static final String ALIAS = "alias";
    public static final String PATH = "path";
    public static final String SOURCE = "source";
    public static final String TYPE = "type";
    public static final String ACTION = "action";
    public static final String IS_OPEN = "is_open";
    public static final String DESCRIBE = "describe";
}
